package org.ssmd3.service.impl;

import org.springframework.stereotype.Service;
import org.ssmd3.dao.UserTypeMapper;
import org.ssmd3.pojo.UserType;
import org.ssmd3.service.UserTypeService;

import javax.annotation.Resource;
import java.util.List;
@Service("userTypeService")
public class UserTypeServiceImpl implements UserTypeService {
    @Resource
    UserTypeMapper userTypeMapper;
    @Override
    public UserType getOneusertype(int id) {
        return userTypeMapper.getOneusertype(id);
    }

    @Override
    public List<UserType> getAllusertypeList() {
        return userTypeMapper.getAllusertypeList();
    }
}
